package link.jfire.jnet.server.storage.ringarray;

import link.jfire.jnet.common.exception.ServerStopException;
import link.jfire.jnet.server.storage.Entry;

public interface RingArray
{
    
    public long next();
    
    public Entry entryAt(long cursor);
    
    public void publish(long cursor);
    
    public boolean isAvailable(long cursor);
    
    public long cursor();
    
    public void waitFor(long cursor) throws ServerStopException;
    
    public void stop();
    
    public boolean stoped();
    
}
